import request from './request'

export const searchGoods = (
  page: number,
  keyword: string,
  key: number,
  categoryId?: number,
  isPromo?: boolean,
  isStock?: boolean,
  isPriceDown?: boolean
) => {
  return request({
    url: `search?keyword=${keyword}`,
    method: 'GET',
    params: { page, categoryId, isPromo, isStock, key, isPriceDown }
  })
}
